package com.yuanfuxing.boxuegu.activity;

import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.yuanfuxing.boxuegu.R;
import com.yuanfuxing.boxuegu.fragment.CourseFragment;
import com.yuanfuxing.boxuegu.fragment.ExerciseFragment;

import org.xutils.x;

public class VideoListActivity extends AppCompatActivity {
    ImageView mImg;
    TextView mTv;
    String videourl;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_video_list);
        mImg = (ImageView) findViewById(R.id.myimg);
        mTv = (TextView) findViewById(R.id.text);
        String url = getIntent().getStringExtra("imaurl");
        String des = getIntent().getStringExtra("des");
        videourl = getIntent().getStringExtra("video");
        Log.i("VideoListActivity","url:"+url);
        x.image().bind(mImg,url);
        mTv.setText(des);
    }

    public void jvideo(View view){
        Intent intent = new Intent(this,VideoActivity.class);
        intent.putExtra("video",videourl);
        startActivity(intent);
    }
}
